import request from '../../../utils/request'

function getProject(params) {
  return request({
    url: '/jklc/project/getPage',
    method: 'get',
    params
  })
}
function getProjectList2() {
  return request({
    url: '/jklc/project/getList',
    method: 'get'
  })
}

function getProList(params) {
  return request({
    url: '/jklc/project/getList',
    method: 'get',
    params
  })
}

function addProject(data) {
  return request({
    url: '/jklc/project',
    method: 'post',
    data
  })
}

function editProject(data) {
  return request({
    url: '/jklc/project',
    method: 'put',
    data
  })
}

function deleteProject(data) {
  return request({
    url: '/jklc/project',
    method: 'delete',
    data
  })
}

function getProjectInfo(params) {
  return request({
    url: '/jklc/project/getInfo',
    method: 'get',
    params
  })
}

export {
  getProject,
  addProject,
  editProject,
  deleteProject,
  getProList,
  getProjectList2,
  getProjectInfo
}